<?
/* SECURITY (don't touch) */
defined('_INCL')||(header('HTTP/1.1 403 Forbidden')&die('403.14 - Access denied.'));
/**************************/

//----------------------------------------
/* Bot-filter */
$BotStrings = array('facebookexternalhit');
foreach($BotStrings as $String){
	if( stristr($_SERVER['HTTP_USER_AGENT'],$String) ){
		Logger('BotFilter','BotDetected: '.$_SERVER['HTTP_USER_AGENT'],true);
		//Do something different for bots than for users
	}
} unset($BotStrings);



//----------------------------------------
Sess_Start();

/* Start Session */
	function Sess_Start(){ $Msg = (empty($_ENV['HTTP_COOKIE'])) ? 'No cookie' : 'Cookie: '.$_ENV['HTTP_COOKIE'] ; Logger(__FUNCTION__,$Msg);
		Sess_FileStructure();
		Sess_GC();
		Sess_DefineID();
		Sess_Read(end($_SESSION['ID']));
	}
/* Close Session */
	function Sess_Close(){ Logger(__FUNCTION__,'');
		Sess_Write(end($_SESSION['ID']));
	}


?>